CURRENT_PATH := $(shell pwd)
KERNEL_DIR := /home/xuebao/work/energy/os/ebf_linux_kernel

obj-m := keys.o

build: kernel_modules

kernel_modules:
	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_PATH) -I./ modules

clean:
	$(MAKE) -C $(KERNEL_DIR) M=$(CURRENT_PATH) clean

help:
	@echo "Usage:"
	@echo "  make     - build project"
	@echo "  make clean - remove build artifacts"

